﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Sagacity.NC.Web.Index" %>

<!--系统主框架页面-->
<%@ Import Namespace="Coolite.Utilities" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.UX" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>中考报名系统</title>
    <link rel="shortcut icon" href="resources/images/app.ico" />
    <link rel="stylesheet" type="text/css" href="resources/css/Index.css" />
    <script type="text/javascript" src="resources/js/ExampleTab.js"></script>

    <script language="javascript" type="text/javascript">
        var setModulesSize = function() {
            try {
                document.frames[0].setDeluxe();
            } catch (e) { }
        }
        var getModulesMenu = function(sysModule) {
            var url = pnlSettings.autoLoad.url.split("?");
            pnlSettings.autoLoad.url = url[0] + "?sysModuleId=" + sysModule;
            pnlSettings.reload();
            pnlSettings
        }
    </script>

    <!--js方法接口-->
    <script type="text/javascript" language="javascript">
        /*----打开或折叠处于西方位置的Panel，true，折叠；false，打开------*/
        function openOrCollapseWest(oc) {
            oc ? pnlSettings.collapse() : pnlSettings.expand();
        }

        /*-----重新加载当前活动选项卡页面------*/
        function activeTabReload(url) {
            TabPanel1.activeTab.autoLoad.url = url;
            TabPanel1.activeTab.reload();
        }

        /*-----修改背景，需指定背景图片路径----------*/
        function updateBodyImg(imgsrc) {
            document.body.style.backgroundImage = "url('" + imgsrc + "')";
        }

        /*--------修改密码。------------*/
        var ModifyPassWord = function() {
            Window1.show();
        }
    </script>

</head>
 <style type="text/css">
      .search-item {
            font: normal 11px tahoma, arial, helvetica, sans-serif;
            padding: 3px 10px 3px 10px;
            border: 1px solid #fff;
            border-bottom: 1px solid #eeeeee;
            white-space: normal;
            color: #555;
            
        }
        
        .search-item h3 {
            display: block;
            font: inherit;
            font-weight: bold;
            color: #222;
            float:left;
        }

        .search-item h3 span {
            float: right;
            font-weight: normal;
            margin: 0 0 5px 5px;
            width: 100px;
            display: block;
            clear: none;
        } 
        
        .panelcss
        {
            padding-left: 20px;
            font-size: 9pt;
            position:relative;
            overflow-y:scroll;
        }

        p { width: 200px; }
        
        .ext-ie .x-form-text { position: static !important; }
    </style>
<body>
    <style type="text/css">
        #itemAddContent
        {
            background: url(<%= this.ScriptManager1.GetIconUrl(Icon.Calculator) %>) no-repeat 0 2px;
        }
        #itemComments
        {
            background: url(<%= this.ScriptManager1.GetIconUrl(Icon.Comment) %>) no-repeat 0 2px;
        }
        #itemActivities
        {
            background: url(<%= this.ScriptManager1.GetIconUrl(Icon.Book) %>) no-repeat 0 2px;
        }
        #itemContacts
        {
            background: url(<%= this.ScriptManager1.GetIconUrl(Icon.ControlPowerBlue) %>) no-repeat 0 2px;
        }
        
    </style>
       
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" Theme="Default" />
    <ext:ViewPort ID="ViewPort1" runat="server" StyleSpec="background-color: transparent;">
        <Body>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <North>
                    <ext:Panel ID="pnlNorth" runat="server" Height="80" Border="false" Header="false"  BodyStyle="background-color: transparent;">
                        <Body>
                            <div id="settingsWrapper">
                                <div id="settings" style="float:left;">
                                    <ul>
                                        <li id="itemComments"><a href="javascript:ModifyPassWord()" style="color: Black;">修改密码</a></li>
                                        <li id="itemActivities"><a href="http://app.lexmis.com:8800/confluence/display/C5/Home"
                                            target="_blank" style="color: Black;">用户手册</a></li>
                                        <li id="itemContacts">
                                            <asp:LinkButton ID="lnkbtnLoginOut" OnClick="LoginOutSys" ForeColor="Black" runat="server"
                                                Text="退出系统"></asp:LinkButton>
                                        </li>
                                        <li><span id="settingsspan">
                                            <asp:Label ID="lblUserInfo" runat="server" Text=""></asp:Label>
                                        </span></li>
                                    </ul>
                                </div>
                            </div>
                            <table style="width: 100%;">
                                <tr style="height: 50px;">
                                    <td style="width: 85%">
                                    </td>
                                    <td align="right" valign="bottom" style="background-image:url(resources/Images/Modules/right_title.jpg);">                                            
                                            <div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </Body>
                    </ext:Panel>
                </North>
                <West Split="true" MinWidth="200" MaxWidth="300" CollapseMode="Mini" Collapsible="true"
                    MarginsSummary="31 0 5 5" CMarginsSummary="31 5 5 5">
                    <ext:Panel runat="server" Title="功能菜单" Width="200" Height="500" ID="pnlSettings"
                         BodyStyle="background-color: #ffffff; overflow:hidden;">
                        <AutoLoad Url="ModuleMenus.aspx" ShowMask="true" NoCache="true" MaskMsg="加载中..."
                            Cls="Mask" Mode="IFrame">
                        </AutoLoad>
                        <Listeners>
                            <BodyResize Handler="javascript:setModulesSize()" />
                            <Collapse Handler="javascript:setModulesSize()" />
                        </Listeners>
                    </ext:Panel>
                </West>
                <Center MarginsSummary="5 5 5 0">
                    <ext:TabPanel ID="TabPanel1" runat="server" EnableTabScroll="true" Title="TabPanel"
                        ActiveTabIndex="0" Border="false" BodyStyle="background-color: #ffffff; border: 1px solid #AABBCC; border-top: none;">
                        <Tabs>
                            <ext:Tab ID="Tab1" runat="server" Title="系统模块" Icon="Vcard" BodyStyle="background-color: transparent;">
                                <AutoLoad Url="SysModules.aspx" ShowMask="true" MaskMsg="正在加载系统模块...." NoCache="true"
                                    Mode="IFrame">
                                </AutoLoad>
                                <Listeners>
                                    <Activate Handler="openOrCollapseWest(false)" />
                                    <%--<Deactivate Handler="openOrCollapseWest(true)" />--%>
                                </Listeners>
                            </ext:Tab>
                            <ext:Tab ID="Tab2" runat="server" Title="观察窗" Icon="House" BodyStyle="background-color: transparent;">
                                <AutoLoad Url="SelfAssistant/UserObserve.aspx" ShowMask="true" MaskMsg="正在加载系统模块...."
                                    NoCache="true" Mode="IFrame">
                                </AutoLoad>
                            </ext:Tab>
                            <ext:Tab ID="Tab3" runat="server" Title="工作平台" Icon="ColorSwatch" BodyStyle="background-color: transparent;">
                                <AutoLoad Url="SelfAssistant/Welcome.aspx" ShowMask="true" MaskMsg="正在加载员工自助模块...."
                                    NoCache="true" Mode="IFrame">
                                </AutoLoad>
                                <Listeners>
                                    <Activate Handler="javascript:getModulesMenu(100);" />
                                </Listeners>
                            </ext:Tab>
                        </Tabs>
                        <Plugins>
                            <ext:TabCloseMenu ID="TabCloseMenu1" 
                            CloseTabText="关闭选项卡"
                             CloseOtherTabsText="关闭其他打开选项卡" 
                             runat="server" >
                            </ext:TabCloseMenu>
                        </Plugins>
                    </ext:TabPanel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort>
    <asp:HiddenField ID="hidResouceid" runat="server" Value="69" />
    
    
       <ext:Window 
            ID="Window1" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="修改密码"
            Draggable="false"
            Width="350"
            Modal="true"
             ShowOnLoad="false"
            BodyStyle="padding:5px;">
            <Body>
                <ext:FormLayout ID="FormLayout1" runat="server">
                    <ext:Anchor Horizontal="100%">
                        <ext:TextField 
                            ID="txtoldpwd" 
                            runat="server" 
                             InputType="Password" 
                            FieldLabel="旧密码" 
                            AllowBlank="false"
                            BlankText="请输入你的旧密码"
                            />
                    </ext:Anchor>
                    <ext:Anchor Horizontal="100%">
                        <ext:TextField 
                            ID="txtPassword" 
                            runat="server" 
                            InputType="Password" 
                            FieldLabel="新密码" 
                            AllowBlank="false" 
                            BlankText="请输入新密码！"                            
                            />
                    </ext:Anchor>
                      <ext:Anchor Horizontal="100%">
                        <ext:TextField 
                            ID="txtpwd" 
                            runat="server" 
                            InputType="Password" 
                            FieldLabel="确认新密码" 
                            AllowBlank="false" 
                            BlankText="请再次输入新密码！"                          
                            />
                    </ext:Anchor>
                </ext:FormLayout>
            </Body>
            <Buttons>
                <ext:Button ID="btnLogin" runat="server" Text="修改" Icon="Accept">
                    <Listeners>
                        <Click Handler=""/>
                    </Listeners>
                    <AjaxEvents>
                        <Click OnEvent="btnLogin_Click">
                            <EventMask ShowMask="true" Msg="Verifying..." MinDelay="500" />
                        </Click>
                    </AjaxEvents>
                </ext:Button>
                <ext:Button ID="btnCancel" runat="server" Text="取消" Icon="Decline">
                    <Listeners>
                        <Click Handler="el.ownerCt.hide();" />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:Window>

    
    </form>
</body>
</html>